package com.pant.factory;

import com.factory.AbstractClothFactory;
import com.pant.iface.Pant;
import com.pant.iface.impl.Cropped;
import com.pant.iface.impl.Flare;
import com.pant.iface.impl.Skinny;
import com.pant.iface.impl.Straight;
import com.shirt.iface.Shirt;

public class PantFactory extends AbstractClothFactory {

    @Override
    public Shirt getShirt(String shirtName) {
        return null;
    }

    public Pant getPant(String pantEnumName) {
        if ( pantEnumName == null )
            return null;
        if ( pantEnumName.equalsIgnoreCase("STRAIGHT") )
            return new Straight();
        if ( pantEnumName.equalsIgnoreCase("SKINNY") )
            return new Skinny();
        if ( pantEnumName.equalsIgnoreCase("CROPPED") )
            return new Cropped();
        if ( pantEnumName.equalsIgnoreCase("FLARE") )
            return new Flare();
        return null;
    }

}
